﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel;

namespace Artech.EnterLibExt.ExceptionHandling.Configuration
{
    public class MatchAllFilterData: ExceptionFilterData
    {
        public override IEnumerable<TypeRegistration> GetRegistrations(string namePrefix)
        {
            yield return new TypeRegistration<IExceptionFilter>(() => new MatchAllFilter())
            {
                Name = this.BuildName(this.Name),
                Lifetime = TypeRegistrationLifetime.Transient
            };
        }
    }
}
